
.express-input {
  text-align: start;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  padding-right: 12px;
  padding-left: 12px;
  color: var(--color-text-1);
  font-size: 14px;
  background-color: var(--color-fill-2);
  border: 1px solid transparent;
  border-radius: var(--border-radius-small);
  cursor: text;
  transition: color 0.1s cubic-bezier(0, 0, 1, 1), border-color 0.1s cubic-bezier(0, 0, 1, 1), background-color 0.1s cubic-bezier(0, 0, 1, 1);
  line-height: 1.5715;
  outline: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);

  &:hover {
    .jsonpath-desc {
      display: block;
    }
  }

  :deep(.arco-textarea) {
    height: 20px;
  }

  :deep(.editor-content) {
    display: inline-flex;
    width: 100%;

  }

  :deep(.expression) {
    > div {
      > p {
        color: rgba(var(--primary-6));
      }
    }
  }

  :deep(.jsonpath) {
    > div {
      > p {
        color: rgb(var(--orange-6));
      }
    }
  }

  &:hover {
    background-color: var(--color-fill-3);
    border-color: transparent;
  }


  :deep(.tiptap) {
    width: 100%;
    outline: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    display: inline-block;
    box-sizing: border-box;
    font-size: 14px;

    p.is-editor-empty:first-child::before {
      color: #adb5bd;
      content: attr(data-placeholder);
      float: left;
      height: 0;
      pointer-events: none;
    }

    > p {
      padding: 0;
      margin: 0;
    }

    .mention {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      padding-right: 3px;
      border-radius: 3px;
      display: inline-flex;
      align-items: center;
      margin-right: 4px;
      color: rgb(var(--primary-6));
      font-size: 12px;
      word-break: break-word;
      background-color: var(--color-bg-2);
      border: 0.5px solid var(--color-border-3);
    }

  }

  :deep(.ProseMirror-focused) {
    .mention {
      background-color: var(--color-fill-2);
      border-color: var(--color-fill-2);
    }
  }

  :global(.dropdown-menu) {
    max-height: 200px;
  }

  :deep(.input-type) {
    width: 100%;
    display: flex;
    padding: 4px 0;

    .tiptap {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
  }

  :deep(.textarea-type) {
    min-height: 100px;
  }
}

.express-input-focus {
  background-color: var(--color-bg-2);
  border-color: rgb(var(--primary-6));

  &:hover {
    background-color: var(--color-bg-2);
    border-color: rgb(var(--primary-6));
  }
}

.jsonpath {
  :deep(input) {
    color: coral;
  }

}


.expression {
  :deep(input) {
    color: rgba(var(--primary-6), .8) !important;
  }
}

